package com.arrogames.rgblabyrinth {
	import assets.GameAssets;
	
	import starling.utils.AssetManager;
	
	public class AssetManager extends starling.utils.AssetManager {
		
		private static var _instance:com.arrogames.rgblabyrinth.AssetManager = null;
		
		public function AssetManager(s:Singleton, scaleFactor:Number=1, useMipmaps:Boolean=false) {
			super(scaleFactor, useMipmaps);
			verbose = true;
		}
		
		public static function get instance():com.arrogames.rgblabyrinth.AssetManager {
			if (_instance === null) {
				_instance = new com.arrogames.rgblabyrinth.AssetManager(new Singleton());
			}
			return _instance;
		}
		
		public function enqueueAll():void {
			enqueue(GameAssets);
		}
	}
}

class Singleton {}